package com.example.jiaju.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    PARAM_ERROR(0,"参数不正确"),

    OTHER_EXCRPTION(100,"其他异常"),

    USER_IS_REGISTER(10,"用户名已注册"),

    VERIFICATIONCODE_ERROR(11,"验证码错误"),

    USER_NOT_FOUND(12,"用户不存在"),

    HOST_NOT_FOUND(13,"主机不存在"),

    USER_HOST_NOT_FOUND(14,"用户未绑定该主机"),

    IS_USE_ERROR(15,"主机使用状态错误"),

    ROLE_ERROR(16,"用户权限错误"),

    NOT_ADMIN(17,"不是管理员"),

    USER_HOST_IS_BIND(18,"用户已绑定该主机")
    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
